"""
@author: xyl
@file: 随机点名系统.py
@time: 2022/11/9 15:15
"""
# 随机点名系统， 可以支持请假，抽点过了之后就不用再点了
import random
people = ['赵', '钱', '孙', '李', '周', '吴', '郑', '王', '冯', '陈', '褚', '卫']
classtime = ['赵', '钱', '孙', '吴', '郑', '王', '冯']
leavetime = ['李', '周', '陈', '褚', '卫']
for i in range(len(people)):
    num1 = random.choice(people)
    print(f"开始点名:\n")
    print(num1)
    if num1 in classtime:
        print(f"到!\n")
    elif num1 in leavetime:
        print(f"请假了\n")
    people.pop(people.index(num1))


